Skip to main content

Cancel Authorization

Cancelling an authorization

Use this endpoint to cancel an Automatic Pix authorization

Request

POST 'https://apisandbox.delbank.com.br/baas/api/v1/pix/automatic/authorizations/:cancellationIdentifier/cancellations'

Headers

NameDescription                            
AuthorizationRequired. API key

Path Parameters:

NameTypeDescription
cancellationIdentifierstringRequired. Cancelation identifier

Body Attributes

NameTypeDescription
cancellationReasonenumThe reason for the cancellation. See the table below for valid options.

Cancellation Reasons

Below is a list of cancellation reason options and their meaning. They must be sent as a string in the cancellationReason field.

ReasonDescription
ACCOUNT_CLOSEDPayer or beneficiary account was closed
COMPANY_CLOSEDReceiving company was closed
PAYER_DECEASEDPayer passed away
REQUEST_ERROR_BY_RECEIVERError in the request by the beneficiary or participant
FRAUD_SUSPECTEDSuspicion of fraud
DUPLICATE_CONFIRMATIONConfirmation was duplicated (e.g., QR Code)
REQUESTED_BY_PAYEERequested by the beneficiary
REQUESTED_BY_PAYERRequested by the payer
NO_RESPONSE_TO_PAIN009No response to pain.009 within the regulatory deadline

Body

{
"cancellationReason": "REQUESTED_BY_PAYEE"
}

Response

The status code 200 indicates success in the query.

Cancellation Reasons

Below is a list of cancellation reason options and their meaning that can be returned in the CancellationReason field.

ReasonDescription
ACCOUNT_CLOSEDPayer or beneficiary account was closed
COMPANY_CLOSEDReceiving company was closed
PAYER_DECEASEDPayer passed away
REQUEST_ERROR_BY_RECEIVERError in the request by the beneficiary or participant
FRAUD_SUSPECTEDSuspicion of fraud
DUPLICATE_CONFIRMATIONConfirmation was duplicated (e.g., QR Code)
REQUESTED_BY_PAYEERequested by the beneficiary
REQUESTED_BY_PAYERRequested by the payer
NO_RESPONSE_TO_PAIN009No response to pain.009 within the regulatory deadline

Cancellation Status

Below is a list of status options that can be returned in the CancellationStatus field.

StatusDescription
ACCEPTEDCancellation accepted
REJECTEDCancellation rejected

Being succeeded, the return will have the following fields in Json format:

{
"recurrenceId": "RR3822485720251212i0jYqQr7g5n",
"requestedAt": "2026-01-16T17:52:54.112"
}

Fetch cancelled authorization

This endpoint will fetch a cancelled authorization

Request

GET 'https://apisandbox.delbank.com.br/baas/api/v1/pix/automatic/authorizations/:recurrenceId/cancellations/:cancellationId'

Headers

NameDescription                            
AuthorizationRequired. API key

Path Parameters:

NameTypeDescription
recurrenceIdstringRequired. Authorization identifier
cancellationIdstringRequired. Cancelation identifier

Response

The status code 200 indicates success in the query.

Being succeeded, the return will have the following fields in Json format:

{
"RecurrenceId": "RR0435879820240605njua7shf40o",
"CancellationId": "IC0435879820240605bcdb1fhn43a",
"StatusDateTime": "2024-09-17T10:15:00.000Z",
"RequesterPersonType": "NATURAL",
"RequesterDocument": "77379362038",
"CancellationReason": "FRAUD_SUSPECTED",
"CancellationAt": "2024-09-17T10:10:06.101Z",
"CancellationStatus": "ACCEPTED",
"ErrorCode": null,
"ErrorDescription": null
}